
<%@ page import="gggone.Angebot"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="layout" content="main" />
<g:javascript library="GGGone" function="countdown()" />
<g:javascript src="swfobject.js"/>
<title><g:message code="default.show.label" args="[entityName]" />

</title>
</head>

<body onLoad="countdown()">

	<div class="body">
	
		<h1 style="font-size: 16px">Angebot anzeigen</h1>
		<g:if test="${flash.message}">
			<div class="message">
				${flash.message}
			</div>
		</g:if>


		<form name="countdownform">
			<p>
				<input size="75" name="countdowninput">
			</p>
		</form>

		<form name="idform">
			<p>
				<input type="hidden" size="75" name="id" value="${fieldValue(bean: angebotInstance, field: "id")}">
			</p>
		</form>

		<form name="Laufzeit">
			<p>
				<input type="hidden" size="75" name="laufzeit"
					value="${fieldValue(bean: angebotInstance, field: "laufzeit")}">
			</p>
		</form>

		<form name="Startdatum">
			<p>
				<input type="hidden" size="75" name="startdatum"
					value="${fieldValue(bean: angebotInstance, field: "anfangszeit")}">
			</p>
		</form>

		<g:if test="${angebotInstance.bild}">
			<p>
				<img align="center" 
					src="${resource(dir:'bild/'+angebotInstance.user.id,
                               file:''+angebotInstance.bildname)}"
					width="204" height="152" alt=""
					title="${angebotInstance.bild}" />
			</p>

		</g:if>
	

		<div class="dialog" valign="top">
		
			<table width="500px" cellpadding="5" cellspacing="5">
				<tbody>

					

					<tr>
					<tr class="prop">
						<td valign="top" class="name"><g:message
								code="user.benutzername.label" default="Anbieter" />
						</td>

						<td>
							${anbieterName}
						</td>

					</tr>

					<tr class="prop">
						<td valign="top" class="name"><g:message
								code="angebot.angebotName.label" default="Angebot" />
						</td>

						<td valign="top" class="value">
							${fieldValue(bean: angebotInstance, field: "angebotName")}
						</td>

					</tr>

					<tr class="prop">
						<td wrap valign="top" class="name"><g:message
								code="angebot.beschreibung.label" default="Beschreibung" />
						</td>

						<td valign="top" class="value">
							${fieldValue(bean: angebotInstance, field: "beschreibung")}
						</td>

					</tr>

					<tr class="prop">
						<td valign="top" class="name"><g:message
								code="angebot.artikelzustand.label" default="Artikelzustand" />
						</td>

						<td valign="top" class="value">
							${fieldValue(bean: angebotInstance, field: "artikelzustand")}
						</td>

					</tr>

					<tr class="prop">
						<td valign="top" class="name"><g:message
								code="angebot.startpreis.label" default="Startpreis" />
						</td>

						<td valign="top" class="value">
							${fieldValue(bean: angebotInstance, field: "startpreis")}
						</td>

					</tr>

					<tr class="prop">
						<td valign="top" class="name"><g:message
								code="angebot.anfangszeit.label" default="Anfangszeit" />
						</td>

						<td valign="top" class="value">
							${fieldValue(bean: angebotInstance, field: "anfangszeit")}
						</td>

					</tr>



					<tr class="prop">
						<td valign="top" class="name"><g:message
								code="angebot.laufzeit.label" default="Laufzeit" />
						</td>

						<td valign="top" class="value">
							${fieldValue(bean: angebotInstance, field: "laufzeit")}
						</td>

					</tr>

					<tr class="prop">
						<td valign="top" class="name"><g:message
								code="angebot.aktuellesGebot.label" default="aktuelles Gebot" />
						</td>

						<td valign="top" class="value">
							${fieldValue(bean: angebotInstance, field: "aktuellesGebot")}
						</td>

					</tr>

					<tr class="prop">
						<td valign="top" class="name"><g:message
								code="angebot.bieter.label" default="H&oumlchstbietender" />
						</td>

						<td valign="top" class="value">
							${fieldValue(bean: angebotInstance, field: "bieter")}
						</td>

					</tr>
				</tbody>
			</table>
		</div>

		<div class="buttons">
		
			<g:form>

				<g:hiddenField name="id" value="${angebotInstance?.id}" />
				<g:if test="${bieten}">
				<br>
				<table>
					<tr class="prop">
						<td>
							<b>Gebotsabgabe</b>
						</td>
					</tr>
					<tr class="prop">
						<td valign="top" class="value"><input type="text"
							name="Gebot" size="20" />
						</td>
					</tr>
				</table>

				<span class="button"><g:actionSubmit class="show"
						action="show" value="Bieten" /> </span>
						
			</g:if>

			<g:if test="${loeschen}">

				<span class="button"><g:actionSubmit class="loeschen"
						action="loeschen" value="L&ouml;schen" onclick="return warnBeforeAngebotDelete();"/> </span>

			</g:if>

			<g:if test="${report}">

				<span class="button">
					<g:actionSubmit class="report" action="report" value="Report"/>
				</span>

			</g:if>
			
		</g:form>

		</div>
	</div>
</body>
</html>
